<?php
namespace User\Model;
use Think\Model\ViewModel;
/**
 * 文章视图模型
 */
class NewsViewModel extends ViewModel {
   public $viewFields = array(
     'News'=>array('id',"cid",'title',"click","pv","time","content","litpic","weixin","weixin_url","hot",'price',"item_id"),
     'Cate'=>array('name'=>'cname',"c_weixin"=>"c_weixin","price"=>"c_price","c_weixin_url"=>"c_weixin_url","c_code_url"=>"c_code_url",'_on'=>'News.cid=Cate.id'),
     'Yumi'=>array('url'=>'yumi_url', '_on'=>'News.yumi_id=Yumi.id'),
   );
 }
?>